package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceAppinfoMapper;
import com.ruoyi.service.domain.ServiceAppinfo;
import com.ruoyi.service.service.IServiceAppinfoService;

/**
 * app信息Service业务层处理
 * 
 * @author ZDL
 * @date 2025-02-19
 */
@Service
public class ServiceAppinfoServiceImpl implements IServiceAppinfoService 
{
    @Autowired
    private ServiceAppinfoMapper serviceAppinfoMapper;

    /**
     * 查询app信息
     * 
     * @param appinfoId app信息主键
     * @return app信息
     */
    @Override
    public ServiceAppinfo selectServiceAppinfoByAppinfoId(Long appinfoId)
    {
        return serviceAppinfoMapper.selectServiceAppinfoByAppinfoId(appinfoId);
    }

    /**
     * 查询app信息列表
     * 
     * @param serviceAppinfo app信息
     * @return app信息
     */
    @Override
    public List<ServiceAppinfo> selectServiceAppinfoList(ServiceAppinfo serviceAppinfo)
    {
        return serviceAppinfoMapper.selectServiceAppinfoList(serviceAppinfo);
    }

    /**
     * 新增app信息
     * 
     * @param serviceAppinfo app信息
     * @return 结果
     */
    @Override
    public int insertServiceAppinfo(ServiceAppinfo serviceAppinfo)
    {
        return serviceAppinfoMapper.insertServiceAppinfo(serviceAppinfo);
    }

    /**
     * 修改app信息
     * 
     * @param serviceAppinfo app信息
     * @return 结果
     */
    @Override
    public int updateServiceAppinfo(ServiceAppinfo serviceAppinfo)
    {
        return serviceAppinfoMapper.updateServiceAppinfo(serviceAppinfo);
    }

    /**
     * 批量删除app信息
     * 
     * @param appinfoIds 需要删除的app信息主键
     * @return 结果
     */
    @Override
    public int deleteServiceAppinfoByAppinfoIds(Long[] appinfoIds)
    {
        return serviceAppinfoMapper.deleteServiceAppinfoByAppinfoIds(appinfoIds);
    }

    /**
     * 删除app信息信息
     * 
     * @param appinfoId app信息主键
     * @return 结果
     */
    @Override
    public int deleteServiceAppinfoByAppinfoId(Long appinfoId)
    {
        return serviceAppinfoMapper.deleteServiceAppinfoByAppinfoId(appinfoId);
    }
}
